package com.newbie.pet.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 类描述：响应状态实体参数
 *
 * @author zhangkailiang
 * @date 2020/5/23
 */
@AllArgsConstructor
public class ResultStatusT {
    /**
     * 状态码
     */
    @Getter
    private Integer status;
    /**
     * 状态描述
     */
    @Getter
    private String msg;

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"status\":")
                .append(status);
        sb.append(",\"msg\":\"")
                .append(msg).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
